package com.bang.study.singleton;

/**
 * @ClassName: SingletonExample1
 * @Desc: 饿汉式
 * @author: BANG
 * @Date: 2019/10/28 11:59
 * @Version: 1.0
 * @Modified By:
 */
public class SingletonExample1 {
    private static SingletonExample1 ourInstance = new SingletonExample1();

    public static SingletonExample1 getInstance() {
        return ourInstance;
    }

    private SingletonExample1() {
    }

}
